package com.ning.city.controller;

import org.springframework.web.bind.annotation.*;

/**
 * @author Ning 242741154@qq.com
 * @date 2021/1/8 12:37
 */
@RestController
public class TestController {
    @GetMapping("hello")
    public String hello() {
        return "Hello World!";
    }

    @RequestMapping(method = {RequestMethod.GET, RequestMethod.POST}, path = "echo")
    public String echo(String str) {
        return str;
    }
}
